Remove free from get_options. Thanx, Alex!
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Nov 2002 18:05:25 +0000 (18:05 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Nov 2002 18:05:25 +0000 (18:05 +0000)
gpsbabel/vecs.c

index 9f7bfd6f90051617a3f7465f5c73e906717d8c86..a06a8276912db5eb102a106185fb1d256807a445 100644 (file)
@@ -222,7 +222,11 @@ get_option(const char *iarglist, const char *argname)
                        break;
                }
        }
-       free(arglist);
+       /*
+        * Return an offset into the allocated copy.
+        * The caller mustn't free or otherwise get froggy with 
+        * this data.
+        */
        return rval;
 }